package com.zbkj.common.model.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户账单表
 * </p>
 *
 * @author 
 * @since 2024-09-12
 */
@Getter
@Setter
@TableName("pe_user_bill")
@ApiModel(value = "UserBill对象", description = "用户账单表")
public class UserBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("收入支出类型 0 支出 1收入")
    private Integer pmtype;

    @ApiModelProperty("类别: 1流量包充值 2项目扣减 3、年卡失效扣除  4报告包充值 5项目报告扣除")
    private Integer category;

    @ApiModelProperty("订阅包值")
    private Long cardDataval;

    @ApiModelProperty("流量包值")
    private Long dataval;

    @ApiModelProperty("报告包值")
    private  Long repDataval;

    @ApiModelProperty("0 未知，1 订单ID 2 项目ID")
    private Integer sourceType;

    @ApiModelProperty("来源id")
    private Long sourceId;

    @ApiModelProperty("批次号-2项目扣减对应ai请求流水号")
    private String sourceNo;

    @ApiModelProperty("订阅包年卡商品ID")
    private Long yearPid;

    @ApiModelProperty("备注描述")
    private String mark;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("0:正常 1:已删除")
    private Integer deleteFlag;


}
